package com.jason.kotlin.gank.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.jason.kotlin.gank.R
import com.jason.kotlin.gank.model.RollAimBean

/**
 * @description: RollRubbishAdapter
 *
 * @author ChenBaoyang
 * @date 4/25/21 10:38
 */
class RollRubbishAdapter : BaseQuickAdapter<RollAimBean, BaseViewHolder>(R.layout.roll_item_rubbish) {

    override fun convert(holder: BaseViewHolder, item: RollAimBean) {
        item.run {
            holder.setText(R.id.tv_name, goodsName)
            holder.setText(R.id.tv_type, goodsType)
        }
    }
}